package com.xiaocg.mediator;

/**
 *
 */
public class Tenant extends Person{
    public Tenant(String name, Mediator mediator) {
        super(name, mediator);
    }

    public void constant(String message){
        mediator.constant(message,this);
    }

    public void getMessage(String message){
        System.out.println("租客："+name+"需要租房的信息："+message);
    }
}
